import React, { Component } from 'react'
//引入css样式

//背景图
import Register from '../Register/Register';
import Logins from './Logins';

export default class Login extends Component {
    constructor(){
        super();
        this.state= {
            logorres:true, // 如果是true就是登录，false就是注册
        }
    };
    btns=()=>{
        this.setState({
            logorres:!this.state.logorres
        })
        console.log("0000");
    };
    render() {
        return (
            <div>
                {this.state.logorres ? <Logins btns={this.btns} monkey={this.props.monkey} open={this.props.open}></Logins>:<Register  btns={this.btns}></Register>}
            </div>
        )

    }
}
